package messaage;

public class CreateThreadMsg extends Message {

	protected String forumID;
	protected String topicName;
	protected String body;

	public CreateThreadMsg(String _username, String _forumID, String _topicName,
			String _body) {
		this.username = _username;
		this.forumID = _forumID;
		this.body = _body;
		this.topicName = _topicName;
	}

	@Override
	public String toString() {
		String msg = "CreateThread\n" + "Username:" + this.username + "\n"
				+ "ForumID:" + this.forumID + "\nTopic:"
				+ this.topicName + "\nBody:" + this.body + "\n" + '\0';

		return msg;
	}

	public int getForumID() {
		return Integer.parseInt(this.forumID);
	}

	public String getTopicName() {
		return topicName;
	}

	public String getBody() {
		return body;
	}

}
